SpatialStream® Code Examples

Undo Redo

Incorporating spatial editing tools into mapping applications is critical to making the creation and maintenance of spatial data sets fast and easy. In addition to versatile, easy to use drawing tools, it’s important to provide undo/redo functionality which simplifies the spatial data editing process and allows for greater precision.

Using the functional component OperationsManager in conjunction with either the Undo or Redo commands, you can incorporate this advanced spatial editing functionality into your application. This example shows how to use the OperationsManager functional component with both the Undo and Redo commands to achieve multi-level undo/redo for the drawing tools.

Operations Manager

function undo() {

OperationManager.undo();
} //undo

function redo() {

OperationManager.redo();
} //redo


Run Sample   View Video   Back To Index